

CC=g++
#SOURCE_PATH = soucareer/crawl/page-fetcher
SOUCE_PATH=./
TARGET_PATH=./output/

CURL_INCLUDE=../../../third_party/curl/include/
CURL_LIB=../../../third_party/curl/lib/

INCLUDE=-I$(SOURCE_PATH) -I$(TARGET_PATH) -I$(CURL_INCLUDE)
LIB_PATH=-L$(TARGET_PATH) -L$(CURL_LIB)
LIBS=$(LIB_PATH) -lcurl
FLAGS=

all: example

soucareer-crawl-page_fetcher.o : page_fetcher.cc page_fetcher.h
	$(CC) $(FLAGS) $(INCLUDE) -c $< -o $(TARGET_PATH)$@

example: example.cc soucareer-crawl-page_fetcher.o
	$(CC) $(FLAGS) $(INCLUDE) $(LIBS) example.cc $(TARGET_PATH)soucareer-crawl-page_fetcher.o -o $(TARGET_PATH)$@
